//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\InspectionRequisitionDO.java

package com.ce.pms.renovation.model;

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:装修验收申请 关联数据表:RM_INSPECTION_REQUISITION
 *
 * @author yandawei
 * @CreateDate:2008-12-17
 */
@Entity
@Table(name = "RM_INSPECTION_REQUISITION")
public class InspectionRequisitionDO implements IDomainObject {

	/**
	 *
	 */
	private static final long serialVersionUID = 8449269673109408942L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "INSPECTION_REQUISITION_ID")
	private Long keyword;

	/**
	 * 装修许可证
	 */
	@OneToOne
	@JoinColumn(name = "RENOVATE_LICENCE_ID")
	private RenovateLicenceDO renovateLicence;

	/**
	 * 竣工日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name = "FINISH_DATE", nullable = false)
	private Date finishDate;

	/**
	 * 申请验收时间，精确到小时
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "INSPECTE_DATE", nullable = false)
	private Date inspecteDate;

	/**
	 * 验收状态003-复验不通过， 004-复验通过
	 */
	@Column(name = "INPECTION_STATE", length = 36)
	private String inpectionState;

	/**
	 *  保证金退还期限
	 */
	@Temporal(TemporalType.DATE)
	@Column(name="RETURN_FEE_DATE")
	private Date returnFeeDate;

	/**
	 * 现场负责人电话
	 */
	@Column(name = "BURDEN_MAN_PHONE", length = 30)
	private String burdenManPhone;

	/**
	 * 装修联系人电话
	 */
	@Column(name = "LINK_MAN_PHONE", nullable = false, length = 30)
	private String linkManPhone;

	/**
	 * 系统信息
	 */
	@Embedded
	@AttributeOverride(name="sysDate",column=@Column(name="SYS_DATE"))
	private SysInfo sysInfo;

	/**
	 * @roseuid 49473A9E038A
	 */
	public InspectionRequisitionDO() {

	}

	/**
	 * 无参构造子
	 *
	 * @roseuid 493F64B202BF
	 */
	public InspectionRequisitionDO(Long keyword) {
		this.keyword = keyword;
	}


	public Date getReturnFeeDate() {
		return returnFeeDate;
	}

	public void setReturnFeeDate(Date returnFeeDate) {
		this.returnFeeDate = returnFeeDate;
	}

	public String getBurdenManPhone() {
		return burdenManPhone;
	}

	public void setBurdenManPhone(String burdenManPhone) {
		this.burdenManPhone = burdenManPhone;
	}

	public Date getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}

	public String getInpectionState() {
		return inpectionState;
	}

	public void setInpectionState(String inpectionState) {
		this.inpectionState = inpectionState;
	}

	public Date getInspecteDate() {
		return inspecteDate;
	}

	public void setInspecteDate(Date inspecteDate) {
		this.inspecteDate = inspecteDate;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getLinkManPhone() {
		return linkManPhone;
	}

	public void setLinkManPhone(String linkManPhone) {
		this.linkManPhone = linkManPhone;
	}

	public RenovateLicenceDO getRenovateLicence() {
		return renovateLicence;
	}

	public void setRenovateLicence(RenovateLicenceDO renovateLicence) {
		this.renovateLicence = renovateLicence;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
